<?php
if($_SESSION['group_id']!=3){redir("./");exit;}
$lesson=mysql_fetch_assoc(mysql_query("select * from lesson where lesson_id='$_GET[lesson_id]'"));
$res=mysql_query("select * from course_regis where course_id='$lesson[course_id]' and m_id='$_SESSION[m_id]' and status_id=1");

if(mysql_num_rows($res)==0){redir('./');exit;}
?>
<div class="box">
	<h2><?php echo $lesson['lesson_name'];?></h2>
	<?php if($err)echo "<div id=error_msg>$err</div>";?>
	<div class="boxContent">
		<?php
		echo $lesson['lesson_detail'];
		?>
    </div>
</div>